<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
		<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
		<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
		<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
		<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
		<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
		<title>后台管理</title>
	</head>

	<body class="body_ifm">
		<div id="status_div" style="display:none;">
			<div class="">
				<form class="layui-form" action="index.php?m=admin_trust&c=status" target="supportiframe" method="post" id="formstatus">
					<table cellspacing='1' cellpadding='1' class="admin_examine_table" style="margin-top:20px;">
						<tr>
							<th width="80">审核操作：</th>
							<td align="left">
								<div class="layui-form-item">
									<div class="layui-input-block">
										<input name="status" id="status1" value="1" title="接受" type="radio" />
										<input name="status" id="status2" value="2" title="未接受" type="radio" />
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<th>审核说明：</th>
							<td align="left">
								<div class="admin_examine_trust"> 设定“未接受”时，将会退还金额。</div>
							</td>
						</tr>
						<tr>
							<td colspan='2' align="center">
								<input type="submit" value='确认' class="admin_examine_bth">
								<input type="button" id="zxxCancelBtn" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
							</td>
						</tr>
					</table>
					<input name="pid" value="0" type="hidden">
					<input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
				</form>
			</div>
		</div>

		<div class="infoboxp">

			<div class="admin_new_tip">
				<a href="javascript:;" class="admin_new_tip_close"></a>
				<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
				<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
				<div class="admin_new_tip_list_cont">
					<div class="admin_new_tip_list">该页面展示了网站所有的委托简历管理信息，可对委托简历进行审核删除操作。</div>
					<div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>
				</div>
			</div>

			<div class="clear"></div>

			<div class="admin_new_search_box">
				<form action="index.php" name="myform" method="get">
					<input name="m" value="admin_trust" type="hidden" />
					<div class="admin_new_search_name">检索类型：</div>
					<div class="admin_Filter_text formselect" did='dtype'>
						<input type="button" value="{yun:}if $smarty.get.type=='2'{/yun}简历名{yun:}else{/yun}用户名{yun:}/if{/yun}" class="admin_Filter_but"
						 id="btype">
						<input type="hidden" name="type" id="type" value="{yun:}if $smarty.get.type{/yun}{yun:}$smarty.get.type{/yun}{yun:}else{/yun}1{yun:}/if{/yun}" />
						<div class="admin_Filter_text_box" style="display:none" id='dtype'>
							<ul>
								<li><a href="javascript:void(0)" onClick="formselect('1','type','用户名')">用户名</a></li>
								<li><a href="javascript:void(0)" onClick="formselect('2','type','简历名')">简历名</a></li>
							</ul>
						</div>
					</div>
					<input type="text" placeholder="输入你要搜索的关键字" value="{yun:}$smarty.get.keyword{/yun}" name='keyword' class="admin_new_text">
					<input type="submit" name='search' value="搜索" class="admin_new_bth">
					<a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();" class="admin_new_search_gj">高级搜索</a>
					{yun:}include file="admin/admin_search.htm"{/yun}
				</form>
			</div>

			<div class="clear"></div>

			<div class="admin_statistics">
				总数：<span class="ajaxresumeall">0</span>；
				未审核：<span class="ajaxresumestatus1">0</span>；
				未接受：<span class="ajaxresumestatus2">0</span>；
				搜索结果：<span>{yun:}$total{/yun}</span>；
			</div>

			<div class="table-list">
				<div class="admin_table_border">
					<iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
					<form action="index.php?m=admin_trust&c=del" name="myform" id='myform' method="post" target="supportiframe">
						<input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">

						<table width="100%">
							<thead>
								<tr class="admin_table_top">
									<th style="width:40px;">
										<label for="chkall"><input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' /></label>
									</th>
									<th>
										{yun:}if $smarty.get.order=='uid' && $smarty.get.desc=='asc'{/yun}
										<a href="index.php?m=admin_trust&order=uid&desc=desc">UID<img src="images/sanj.jpg"></a>
										{yun:}else{/yun}
										<a href="index.php?m=admin_trust&order=uid&desc=asc">UID<img src="images/sanj2.jpg"></a>
										{yun:}/if{/yun}
									</th>
									<th align="left">用户名</th>
									<th align="left">简历名</th>
									<th>价格(元)</th>
									<th>
										{yun:}if $smarty.get.order=='add_time' && $smarty.get.desc=='asc'{/yun}
										<a href="index.php?m=admin_trust&order=add_time&desc=desc">申请时间<img src="images/sanj.jpg"></a>
										{yun:}else{/yun}
										<a href="index.php?m=admin_trust&order=add_time&desc=asc">申请时间<img src="images/sanj2.jpg"></a>
										{yun:}/if{/yun}
									</th>
									<th>状态</th>
									<th class="admin_table_th_bg">操作</th>
								</tr>
							</thead>
							<tbody>
								{yun:}foreach item=v key=key from=$rows{/yun}
								<tr align="center" {yun:}if ($key+1)%2=='0' {/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">
									<td><input type="checkbox" value="{yun:}$v.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
									<td align="left" class="td1" style="text-align:center;"><span>{yun:}$v.uid{/yun}</span></td>
									<td class="ud" align="left">{yun:}$v.username{/yun}</td>
									<td class="ud" align="left">
										{yun:}if $v.name{/yun}{yun:}$v.name{/yun}{yun:}else{/yun}<font color="#FF0000">简历已删除</font>{yun:}/if{/yun}
									</td>
									<td class="gd" width="60"><span class="amount-pay-out">{yun:}$v.price{/yun}</span></td>
									<td class="td" width="200">{yun:}$v.add_time|date_format:"%Y-%m-%d"{/yun}</td>
									<td>
										{yun:}if $v.status==1{/yun}<span class="admin_com_Audited">已接受</span>
										{yun:}elseif $v.status==0{/yun}<span class="admin_com_noAudited">未审核</span>
										{yun:}elseif $v.status==2{/yun}<span class="admin_com_tg">未接受</span>
										{yun:}/if{/yun}
									</td>
									<td>
										{yun:}if $v.name{/yun}
										<a class="admin_new_c_bth admin_new_c_bth_yl" target="_blank" href="{yun:}url m=resume c=show id='`$v.eid`' look=admin{/yun}">预览</a>
											{yun:}if $v.status==1{/yun}
											<a class="admin_new_c_bth " href="index.php?m=admin_trust&c=recom&eid={yun:}$v.eid{/yun}&id={yun:}$v.id{/yun}">推荐</a>
											{yun:}/if{/yun}
											{yun:}if $v.status==0{/yun}
											<a href="javascript:void(0);" class="admin_new_c_bth admin_new_c_bthsh status" status="{yun:}$v.status{/yun}"
											 pid="{yun:}$v.id{/yun}">审核</a>
											{yun:}/if{/yun}
										{yun:}/if{/yun}

										{yun:}if $v.status!=0{/yun}
										<a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?m=admin_trust&c=del&id={yun:}$v.id{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc">删除</a>
										{yun:}/if{/yun}
									</td>
								</tr>
								{yun:}/foreach{/yun}
								<tr>
									<td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
									<td colspan="7">
										<label for="chkAll2">全选</label>&nbsp;
										<input class="admin_button" type="button" name="delsub" value="删除所选" onClick="return really('del[]')" />
									</td>
								</tr>
								{yun:}if $total > $config.sy_listnum {/yun}
									<tr>
										{yun:}if $pagenum==1{/yun}
											<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum == $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}/if{/yun}
										<td colspan="5" class="digg">{yun:}$pagenav{/yun}</td>
									</tr>
								{yun:}/if{/yun}
							</tbody>
						</table>
					</form>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			layui.use(['layer', 'form'], function() {
				var layer = layui.layer,
					form = layui.form,
					$ = layui.$;
			});

			$(function() {
				$(".status").click(function() {
					$("input[name=pid]").val($(this).attr("pid"));
					var pid = $(this).attr("pid");
					var status = $(this).attr("status");
					$("#status" + status).attr("checked", true);
					layui.use(['form'], function() {
						var form = layui.form;
						form.render();
					});
					$("input[name=pid]").val(pid);
					status_div('委托简历管理', '390', '230');
				});
				$.get("index.php?m=admin_trust&c=trustNum", function(data) {
					var datas = eval('(' + data + ')');
					if (datas.resumeAllNum) {
						$('.ajaxresumeall').html(datas.resumeAllNum);
					}
					if (datas.resumeStatusNum1) {
						$('.ajaxresumestatus1').html(datas.resumeStatusNum1);
					}
					if (datas.resumeStatusNum2) {
						$('.ajaxresumestatus2').html(datas.resumeStatusNum2);
					}
				});
			});
		</script>
	</body>
</html>
